<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <h2>Generate Reports:</h2>
    <body>
        <?php
        $User_Name = $_POST['User_Name'];
        $password = $_POST['password'];
        if(isset($_POST['census'])){
            echo "Please select options to generate report <br>"; ?>
            Group Name: <input type="text" name="GName"> <br>
            <form action="reportDetails" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="generate" value="Generate">
            </form
        <?php
        } elseif(isset($_POST['renewal'])){
            echo "Please select options to generate report <br>"; ?>
            Begin Date: <input type="text" name="BDate"> <br>
            End Date: <input type="text" name="EDate"> <br>
            <form action="reportDetails" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="generate" value="Generate">
            </form
        <?php
        } elseif(isset($_POST['List'])){ ?>
            <form action="reportDetails" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="generate" value="Generate">
            </form
        <?php
        } elseif(isset($_POST['generate'])){
            echo "Generate Desired Report (using given information)";?>
            <form action="reportDetails" method ="POST">
            <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
            <input type=hidden name=password value="<?php echo $password;?>">
            <input type="submit" name="submit" value="Back">
            </form <?php
        }
        else{ ?>
        <form action="reportDetails" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="renewal" value="Renewal Report">
        </form>
        <form action="reportDetails" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="census" value="Census">
        </form>
        <form action="reportDetails" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="List" value="List of Companies">
        </form>
        <form action="mainPage.php" method ="POST">
        <input type=hidden name=User_Name value="<?php echo $User_Name;?>">
        <input type=hidden name=password value="<?php echo $password;?>">
        <input type="submit" name="LogOut" value="Back">
        </form>
        <?php
        }
        ?>
    </body>
</html>